<template>
	<div class="header">
		<div class="headerLife">
			<div class="returnicon iconfont">&#xe624;</div>
		</div>
		<div class="headerInput">
			<span class="seachicon iconfont">&#xe632;</span>输入城市/景点/游玩主题
		</div>
		<router-link to='/city'>
			<div class="headerRight">
				{{this.city}}
				<span class="city iconfont">&#xe64a;</span>
			</div>
		</router-link>
	</div>
</template>

<script>
import { mapState } from 'vuex'
export default {
		name: 'HomeHeader',
		computed: {
			...mapState(['city'])
		}
	}
</script>

<style lang="stylus" scoped>
	@import '~styles/varibles.styl'
	.header
		background-color: $bgColor
		display: flex
		line-height: .86rem
		color: #fff
	.headerLife
		width: .64rem	
		float: left
		text-align: center
	.headerRight
		min-width: 1.04rem
		padding: 0 .1rem
		text-align: center
		float: right
		color: #fff
		.city
			font-size: .23rem
	.headerInput
		flex: 1	
		padding-left: .10rem
		margin-top: .12rem
		margin-left: .10rem	
		height: .62rem 
		line-height: .62rem 
		color: #ccc
		background-color: #fff
		border-radius: .1rem
</style>